﻿package com.jxl.dnd.races
{
	import jxl.dnd.races.RacialAbility
	
	public class Dwarf extends Race
	{
		public var className:String = "Dwarf";
		
		public function Dwarf():void
		{
			super();
			
			size = "medium";
			speed = 20; // feet
			racialAbilities_array;
			extraFeat = 0;
			extraSkillPoints = 0;
			extraSkillPointsPerLevel = 0;
			bonusLanguagesAmount = 0;
			bonusLanguages_array = ["Dwarven"];
			bonusLanguagesChoices_array = ["Giant", "Gnome", "Goblin", "Orc", "Terran", "Undercommon"];
			favoredClass = "Fighter";
			languages_array = ["Common", "Dwarven"];
			literacy = true;
			constitutionBonus = 2;
			charismaBonus = -2;
			
			
			
			racialAbilities_array = [new RacialAbility("Darkvision", "Darkvision", 0, 60),
									new RacialAbility("Stonecunning", "Stonecunning", 2, 10),
									new RacialAbility("Save vs Poison", "Save vs Poison", 2),
									new RacialAbility("Save vs Spells", "Save vs Spells", 2),
									new RacialAbility("attack roll", "attack roll", 1, 0, 
											["Orc", "Goblin", "Hobgoblin", "Bugbear"]),
									new RacialAbility("dodge vs giants", "dodge", 4),
									new RacialAbility("appraise", "appraise", 2),
									new RacialAbility("craft", "craft", 2)];
		}
	}
}